package com.example.cloud.consume.order.loadbalanced;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @author Administrator
 */
public interface LoadBalancer {
    /**
     * 根据所有服务，选择一个本次调用的服务
     * @param serviceInstances
     * @return
     */
    ServiceInstance instances(List<ServiceInstance> serviceInstances);
}
